-- GENERATED SPELL FOR [Bethor Iceshard] --


function spell0_1498(pUnit, Event) --@Nether Gem,Self--
pUnit:FullCastSpellOnTarget(7673,pUnit)
pUnit:RegisterEvent('Sorts_1498', 3000, 1)
end

function Sorts_1498(pUnit, Event)
local choix_sorts_1498 = math.random(0, 0)
if choix_sorts_1498 == 0 then
pUnit:RegisterEvent('spell0_1498', 1, 1)
end
end

function mob1498_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1498', math.random(1500, 3000), 1)
end

function mob1498_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1498_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1498_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1498, 1, 'mob1498_Action')
RegisterUnitEvent(1498, 2, 'mob1498_Leave')
RegisterUnitEvent(1498, 3, 'mob1498_Kill')
RegisterUnitEvent(1498, 4, 'mob1498_Die')
